#!/bin/sh
Cur_day=`date -d '1 day ago' +%Y%m%d`
TIME_WAIT_MAX=36000
TIME_SLEEP=300
#运行时传城市参数进来 $1
bj_today=$1"_$Cur_day"
Local_inputdata_path=/usr/local/apps/hadoop/data
Local_code_path=/usr/local/apps/hadoop/hezu
Local_hadoop_path=/usr/local/apps/hadoop-2.7.2/share/hadoop/tools/lib
#step4 uniqueID
hadoop jar $Local_hadoop_path/hadoop-streaming-2.7.2.jar \
-D mapreduce.job.reduces=1 \
-input /house_hezu/$bj_today/mapred3/part-00000 \
-output /house_hezu/$bj_today/mapred4 \
-mapper '/usr/bin/php mapper_4.php' \
-reducer '/usr/bin/php reducer_4_3.php' \
-file '/usr/local/apps/hadoop/hezu/mapper_4.php' \
-file '/usr/local/apps/hadoop/hezu/reducer_4_3.php'
